﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MarioArenaLevelEditor
{
    public static class UI
    {
        public static Panel MapPanel;
        public static TextBox TbWidth;
        public static Button ButtonLeft;
        public static Button ButtonRight;
        public static Button ButtonUp;
        public static Button ButtonDown;

        /// <summary>
        /// Stores controls within the UI class, so these are easier to access.
        /// </summary>
        /// <param name="mapPanel">mapPanel.</param>
        /// <param name="tbWidth">Textbox containing the width of the map.</param>
        /// <param name="buttonLeft">Button for scrolling the map to the left.</param>
        /// <param name="buttonRight">Button for scrolling the map to the right.</param>
        /// <param name="buttonUp">Button for scrolling the map up.</param>
        /// <param name="buttonDown">Button for scrolling the map down.</param>
        public static void shareComponents(Panel mapPanel, TextBox tbWidth, Button buttonLeft, Button buttonRight, Button buttonUp, Button buttonDown)
        {
            MapPanel = mapPanel;
            TbWidth = tbWidth;
            ButtonLeft = buttonLeft;
            ButtonRight = buttonRight;
            ButtonUp = buttonUp;
            ButtonDown = buttonDown;
        }
    }
}
